home *** CD-ROM | disk | FTP | other *** search
- Path: csus.edu!csus
- From: sac46826@csus.edu (Mike Billard)
- Newsgroups: comp.lang.c++
- Subject: Assertion error help needed
- Date: Thu, 21 Mar 96 02:48:10 GMT
- Organization: California State University Sacramento
- Message-ID: <4iqg2r$itd@news.csus.edu>
- NNTP-Posting-Host: @u0107-p16.dialin.csus.edu
- X-Newsreader: News Xpress 2.0 Beta #0
-
- I have been looking into my assertion failure problem a bit, but I'm still
- having the problem. To recap:
-
- I used MSVC++ 4.0 to build an SDI application and created
- an edit box. I then mapped a CEdit variable, m_Edit, to the edit control.
- Next, I mapped the WM_INITDIALOG message to OnInitDialog, and in that fuction
- I typed: m_Edit.SetWindowText("Default Text");
-
- When I installed the new MSVC++4.1 and ran the program, I got an assertion
- failure on line 229 of winocc.cpp. This is different than the last time I
- tried the above but is probably the real problem. The code in winocc.cpp says
-
- Assert(::IsWindow(m_hWnd)); As best as I can tell, the m_Edit variable is not
- initialized. What I don't understand is that in many tutorials in books like
- Essential Visual C++4, many controls are initialized in the OnInitDialog
- fuction with no problems. So what am I doing wrong?
-
- Thanks in advance.
-
- Sincerely,
- Mike Billard
- billardm@csus.edu
-
- -Mike Billard
-
- email: billardm@csus.edu
-